package per.zhang.serverPrevioder.entity;


import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * <p>
 * 
 * </p>
 *
 * @author Zhang
 * @since 2021-01-25
 */
@Data
@ApiModel(value="user")
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user")
public class User implements Serializable {



    /**
     * 用户账号，唯一
     */
    
    @Id
    @Column(name = "user_id")
    @ApiModelProperty(value = "用户账号，唯一",name = "userId",dataType = "String")
    private String userId;

    /**
     * 密码
     */
    @Column(name = "password")
    @ApiModelProperty(value = "密码",name = "password",dataType = "String")
    private String password;

    /**
     * 用户角色
     */
    @Column(name = "role_name")
    @ApiModelProperty(value = "用户角色",name = "roleName",dataType = "String")
    private String roleName;


}


